package br.com.troca.carro.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import br.com.troca.carro.vo.Endereco;

@Repository
@Transactional
public class EnderecoDAOImpl implements EnderecoDAO {
	
	@Autowired
	private SessionFactory sessionFactory;
	
	@Transactional
	public void incluir(Endereco objeto) {
		sessionFactory.getCurrentSession().save(objeto);
	}

	public void alterar(Endereco objeto) {
	}

	public void excluir(Endereco objeto) {
	}

}
